package davey.wu.mock.demo;

public class Publisher {
	private Subscriber subscriber;

	public void setSubscriber(Subscriber subscriber) {
		this.subscriber = subscriber;
	}

	public void publish(String message) {
		subscriber.receive(message);
	}

	public void publish(Integer code) {
		subscriber.receive(code);
	}

	public void publish(Message message) {
		subscriber.receive(message);
	}
}
